package com.qf.feign;

import com.qf.pojo.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * feign远程调用接口兜底类
 * @author 千锋健哥
 */
@RestController
@RequestMapping("/searchFallBack")
public class SearchFeignFallBack implements SearchFeign{

    @Override
    public String test() {
        return "我背锅";
    }

    @Override
    public List<User> findByName(String name) {
        return null;
    }

    @Override
    public void updateUser(User user) {
        System.out.println("==别人的事情我来背锅==");
    }

}
